jQuery.fn.extend({
    village_add_plant_id: function ($id) {
        if(!jQuery(this).val()){
            return jQuery(this).val($id);
        }
        return jQuery(this).val(jQuery(this).val()+','+$id);
    },
    plant_validate_msg: function ($msg) {
         jQuery(this).html($msg);      
    },
    plant_load: function (id,plant_name,area,acre_yield,price) {
        var html ='<div class="fertilization-div '+id+'"><div class="fertilization-title">' +plant_name+
            '<span class="fertilization-delete" onclick="ajax_table_delete_item(\'/village/plant/list/delete\',\''+id+'\')">-</span></div>' +
         
         '<ul><li>作物:'+plant_name+'</li>' +
         '<li>种植面积(亩):'+area+'</li>' +
         '<li>亩产量:'+acre_yield+'</li>' +
         '<li>价格（元/千克）:'+price+'</li></ul></div';
        jQuery('.add-fertilization-div').before(html);
    }
});